from rest_framework.serializers import ModelSerializer
from .models import *


#店主序列化器
class ShopUsermanageSer(ModelSerializer):
    class Meta:
        model = ShopUser
        fields = '__all__'

#商品序列化器

class ShopSer(ModelSerializer):
    class Meta:
        model = Shops
        fields = '__all__'

#商品序列化器
class ShopmanageSer(ModelSerializer):
    userid = ShopUsermanageSer()
    class Meta:
        model = Shops
        fields = '__all__'



